Configuring Redundancy

While each redundant environment is unique in its configuration, the following steps provide a basic guideline for configuring your CygNet servers and services to provide high availability of CygNet Software locally or across data centers in the event of a failover situation.

  1. Establish a naming convention for all redundant RSMs.
  1. Design your environment. Identify the Primary Active Server and the Backup Standby Server redundant pairs in your system. Draw a schematic diagram of your CygNet environment to identify all sites, domains, replicating services, desired failover relationships, etc. This will help as you configure redundancy.
  1. Apply your naming convention. Apply the naming convention to the sites and services in the schematic diagram.
  1. Install and configure redundant services. Install and configure all CygNet sites in the redundancy environment in the usual way.
  • Install the SCADA services on each host with one RSM. Each redundant RSM must be uniquely named.
  • Install the Measurement service (FMS) only if running on a Primary host.

Note the following when setting up your services:

  • Uniquely named RSMs — All RSMs defined in the redundancy definition must be uniquely named. Redundant RSMs register on multiple domains so they must be uniquely named across multiple domains. The CygNet Host Manager cannot own two RSM services with the same name.
  • Primary domain. A redundant RSM has the concept of a primary domain.
  • RSM control. All services must be controlled by an RSM. A redundant RSM cannot manage non-redundant services. Inversely, a non-redundant RSM cannot manage redundant services.
  • Different domains. The CygNet Host Manager can run services on different domains. The ambient domain may not match your current state.
  • Don't mix redundant and non-redundant services — Best practice recommends that you don’t mix redundant and non-redundant services on the same domain. You can't have non-redundant services running on the same domain where there are redundant services running. If you do configure your services in this way, there is the possibility that the non-redundant services will become unavailable after a failover. If this is a required configuration, you can mitigate this risk by making sure you have a non-redundant ARS running on the domain (often referred to as a bastion ARS) that is the owner for the ARS records of the non-redundant services.
  • Identical service sets — All sites must have identical services sets. When configuring redundancy services with multiple sites and domains within a redundant environment, each site on each domain must have the exact same set of services across all redundant sets. For example, if you have four domains consisting of two sets of redundant pairs, each set must have the same list of services, as shown in the diagram to the right.
  • AUD and ELS records. All CygNet services guarantee delivery for AUD records, but not for ELS records. Consider using an AUD and an ELS in a Bastion host for seamless recording of audit and event records.
  • Measurement redundancy. The Measurement service (FMS) can only be configured for redundancy between data centers. The FMS only supports data-center failover; it does not support local redundancy. Local redundancy can be achieved with Microsoft SQL server replication and/or clustering.A redundant RSM will not start an FMS on a domain defined as in the local standby role. If you are configuring a local failover with a site that includes an FMS, the FMS can be included, but the local standby FMS will not start. See Configuring FMS Redundancy for more information.
  • License master. You should have a single ARS configured to be the license master per domain. It's acceptable if this ARS is unavailable for short periods of time.
  • Note: In a multi-domain redundant system, since an ARS controlled by an RSM in redundancy mode will now be on each domain on which it can potentially run, the decision about which ARS is configured to be the license master becomes more difficult to make. We recommend that one ARS in each network be designated as the license master. If that ARS becomes unavailable for an extended period of time, then a different ARS should be promoted to the license master role, which will require a restart of that newly designated master ARS.

Redundancy - Identical Service Sets
Identical Service Sets
  1. Update the service configuration file keywords. Use the CygNet Config File Manager to apply mass changes to multiple services. CygNet Redundancy operates on top of the CygNet Replication model and is supported by underlying replication functionality. While replication is turned off for all participating services in a redundancy environment (REPL_SOURCE=FALSE), the application does require the configuration of some of the other replication keywords (REPL_CHECK_INTERVAL and REPL_DELAY_MAX). The REDUNDANT keyword turns redundancy on for each service.
  1. Install and configure non-redundant services.
  1. Add and start all services using CygNet Host Manager.
  • Add all RSM services to Host Manager as a System Service.
  • Make sure each RSM is configured to start on the expected domain, as shown in the example to the right.
  • Start all RSMs in the redundant environment. Use CygNet Explorer to monitor service startup and shutdown.
CygNet Host Manager - Start on the Expected Domain
Start on the Expected Domain
  1. Configure a Bastion Host. Consider running a non-redundant bastion host to monitor all sites in the redundancy environment. Install CygNet on the bastion host without any special redundancy configurations. Configure the following services:
  1. Create a Redundancy Definition. Use the CygNet Redundancy Editor to define the redundant relationships between service sets. Redundancy definitions are stored in the redundancydefs.db data file in the RSM directory. Verify all services are running on their expected domain, especially the ARS. If not, you may have firewall issues between hosts. Pick any redundant RSM in the control network to configure for redundancy. The redundancy definition includes the following elements:
  1. Verify the redundancy configuration. Once definitions are saved, you can verify the following:
  • That all replicating services start replicating
  • Redundant RSMs will appear on multiple domains. CygNet Host Manager will list the multiple domains for the redundant RSMs. The first domain listed is the primary domain, as shown in the example to the right. This may change after a failover.
Redundant RSMs running on Multiple Domains
Redundant RSMs running on Multiple Domains
First Domain is Primary Domain
  1. Perform Failover. Use a tool such as the CygNet Redundancy Dashboard to visualize your failover sets, review replication status, and execute failover, once Failover Readiness is achieved. Customize the CygNet Redundancy Dashboard to match your system. We recommend that you customize the checks to verify a host is ready to run a service on the active domain. With the dashboard you can:

You can also execute failover via script using the CygNet API (CygNet.API.ServiceManager).

  1. Validate/Troubleshoot.

More:

Back to top